package LLY.lly.item;

import LLY.lly.block.BlockRegistryHandler;
import LLY.lly.creativetab.TabLiang;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemStack;
import LLY.lly.lly;


public class ItemLiangPickaxe extends ItemPickaxe{

    public ItemLiangPickaxe()
    {
        super(ItemRegistryHandler.LIANG_TOOL_MATERIAL);
        this.setUnlocalizedName(lly.MODID + ".liangPickaxe");
        this.setCreativeTab(TabLiang.TAB_Liang);
        this.setRegistryName("liang_pickaxe");
    }

    @Override
    public float getDestroySpeed(ItemStack stack, IBlockState state)
    {
        Block block = state.getBlock();
        float speed = super.getDestroySpeed(stack, state);
        return (block == BlockRegistryHandler.BLOCK_LIANG) ? speed * 100000000 : speed;
    }

}
